<?php 
defined('IN_SITE') or exit('Access Denied');
get_header();

?>
<body>
<?=$menu?>
<form name="search" method="get" action="">
<input type="hidden" name="module" value="<?=$module?>"> 
<input type="hidden" name="action" value="<?=$action?>"> 
<input type="hidden" name="catid" value="<?=$catid?>">
<table cellpadding="0" cellspacing="1" class="table_form">
  <caption>信息查询</caption>
<tr>
<td>

标题：<input type="hidden" name="field" value="title">
<input type="text" name="q" value="<?=$q?>" size="20" />&nbsp;
发布时间：<?=form::date('inputdate_start')?> - <?=form::date('inputdate_end')?>&nbsp;
<input type="submit" name="dosubmit" value=" 查询 " />
</td>
</tr>
</table>
</form>
<form name="myform" method="post" action="">
<table cellpadding="0" cellspacing="1" class="table_list">
  <caption>信息管理</caption>
<tr>
<th width="30">选中</th>
<th width="50">排序</th>
<th width="40">ID</th>
<th width="175">标题</th>
<th width="82">修改 | 删除</th>
</tr>
<?php 

	foreach($result as $info){
		//$r = $c->get_count($info['contentid']);
?>
<tr>
<td><input type="checkbox" name="contentid[]" value="<?=$info['fid']?>" id="content_<?=$info['fid']?>" /></td>
<td><input type="text" name="listorders[<?=$info['fid']?>]" value="<?=$info['listorder']?>" size="4" /></td>
<td><?=$info['fid']?></td>
<td><?=str_cut($info['name'],30)?></td>
<td align="center">
    <a href="?module=<?=$module?>&file=<?=$file?>&action=edit&fid=<?=$info['fid']?>">修改</a> | 
    <a href="?module=<?=$module?>&file=<?=$file?>&action=delete&fid=<?=$info['fid']?>">删除</a>
</td>
</tr>
<?php 
	}

?>
</table>
<div>
<span style="width:60px"><a href="###" onClick="javascript:$('input[type=checkbox]').attr('checked', true)">全选</a>/<a href="###" onClick="javascript:$('input[type=checkbox]').attr('checked', false)">取消</a></span></div>
<div class="pages"><?=$forum->pages?></div>
</form>
</body>
</html>